#include "HighPc.h"

namespace dwarf {

HighPc::HighPc(TypeUndefined _typeUndefined)
		: type_(TYPE_UNDEFINED),
		  value_() {
}

HighPc::HighPc(TypeAddress _typeAddress, Dwarf_Addr _address)
		: type_(TYPE_ADDRESS),
		  value_() {
	value_.address_ = _address;
}

HighPc::HighPc(TypeOffset _typeOffset, Dwarf_Unsigned _offset)
		: type_(TYPE_OFFSET),
		  value_() {
	value_.offset_ = _offset;
}

HighPc::HighPc(const HighPc &_highPc)
		: type_(_highPc.type_),
		  value_(_highPc.value_) {
}

HighPc::~HighPc() {
}

HighPc::Type HighPc::getType() const {
	return type_;
}

Dwarf_Addr HighPc::getAddress() const {
	return value_.address_;
}

Dwarf_Unsigned HighPc::getOffset() const {
	return value_.offset_;
}

}
